# Description: Ortaya çıkan JPEG-2000 Bölüm 1'de belirtilen codec bileşeninin yazılım tabanlı bir uygulaması
# URL: http://www.ece.uvic.ca/~mdadams/jasper/
# Packager: milisarge
# Depends on: libjpeg-turbo

name=jasper
version=1.900.1
release=1
source=(http://www.ece.uvic.ca/~mdadams/$name/software/$name-$version.zip \
	 http://www.linuxfromscratch.org/patches/blfs/svn/jasper-1.900.1-security_fixes-2.patch)

build() {
	cd $name-$version
	patch -Np1 -i ../$name-$version-security_fixes-2.patch
	./configure --prefix=/usr --enable-shared \
	--mandir=/usr/share/man
	make
	make DESTDIR=$PKG install

	install -v -m755 -d $PKG/usr/share/doc/jasper-$version
	install -v -m644 doc/*.pdf $PKG/usr/share/doc/$name-$version
}
